package com.demo.dao;

import com.demo.domain.FctOtsorder;
import com.demo.mapper.FctOtsorderMapper;
import com.demo.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by duanxifeng on 2017/5/25.
 */
@Service
public class OrderDao {

    @Autowired
    private OrderMapper orderMapper;

    @Autowired
    private FctOtsorderMapper  fctOtsorderMapper;

    public FctOtsorder getFctOtsOrderById(String orderId) {
        FctOtsorder fctOtsorder=orderMapper.findUserByUserid(orderId);
        return  fctOtsorder;
    }


    public FctOtsorder selectByPrimaryKey(Long serialNumber){
        FctOtsorder fctOtsorder=fctOtsorderMapper.selectByPrimaryKey (serialNumber);
        return  fctOtsorder;
    }
}
